<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="Hexo Theme Keep">
    <meta name="description" content="Hexo Theme Keep">
    <meta name="author" content="cm_westwood">
    
    <title>
        
        西木同学的代码训练 2022
    </title>
    
<link rel="stylesheet" href="/code_training_2022/css/style.css">

    <link rel="shortcut icon" href="">
    
<link rel="stylesheet" href="/code_training_2022/css/font-awesome.min.css">

    <script id="hexo-configurations">
    let KEEP = window.KEEP || {};
    KEEP.hexo_config = {"hostname":"cm_westwood.gitee.io","root":"/code_training_2022/","language":"en","path":"search.json"};
    KEEP.theme_config = {"toc":{"enable":true,"number":true,"expand_all":true,"init_open":true},"style":{"primary_color":"#0066CC","avatar":"","favicon":"","article_img_align":"left","left_side_width":"260px","content_max_width":"920px","hover":{"shadow":false,"scale":false},"first_screen":{"enable":true,"background_img":"https://xpoet.cn/images/bg.svg","description":"Keep writing and Keep loving."},"scroll":{"progress_bar":{"enable":true},"percent":{"enable":true}}},"local_search":{"enable":true,"preload":false},"code_copy":{"enable":true,"style":"default"},"pjax":{"enable":false},"lazyload":{"enable":true},"version":"3.4.5"};
    KEEP.language_ago = {"second":"%s seconds ago","minute":"%s minutes ago","hour":"%s hours ago","day":"%s days ago","week":"%s weeks ago","month":"%s months ago","year":"%s years ago"};
  </script>
<meta name="generator" content="Hexo 6.2.0"></head>


<body>
<div class="progress-bar-container">
    
        <span class="scroll-progress-bar"></span>
    

    
</div>


<main class="page-container">

    
        <div class="first-screen-container flex-center fade-in-down-animation">
    <div class="content flex-center">
        <div class="description">
            Keep writing and Keep loving.
        </div>
        
    </div>
</div>

    

    <div class="page-main-content">

        <div class="page-main-content-top">
            <header class="header-wrapper">

    <div class="header-content has-first-screen">
        <div class="left">
            
            <a class="logo-title" href="/">
                西木同学的代码训练 2022
            </a>
        </div>

        <div class="right">
            <div class="pc">
                <ul class="menu-list">
                    
                        <li class="menu-item">
                            <a class="active"
                               href="/code_training_2022/"
                            >
                                HOME
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/code_training_2022/archives"
                            >
                                ARCHIVES
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/code_training_2022/tags"
                            >
                                TAGS
                            </a>
                        </li>
                    
                    
                        <li class="menu-item search search-popup-trigger">
                            <i class="fas fa-search"></i>
                        </li>
                    
                </ul>
            </div>
            <div class="mobile">
                
                    <div class="icon-item search search-popup-trigger"><i class="fas fa-search"></i></div>
                
                <div class="icon-item menu-bar">
                    <div class="menu-bar-middle"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="header-drawer">
        <ul class="drawer-menu-list">
            
                <li class="drawer-menu-item flex-center">
                    <a class="active"
                       href="/code_training_2022/">HOME</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/code_training_2022/archives">ARCHIVES</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/code_training_2022/tags">TAGS</a>
                </li>
            
        </ul>
    </div>

    <div class="window-mask"></div>

</header>


        </div>

        <div class="page-main-content-middle">

            <div class="main-content">

                
                    <div class="home-content-container fade-in-down-animation">
    <ul class="home-article-list">
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2023/01/15/%E7%AC%AC11%E5%91%A8/">
                        第11周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <p>printf  风格的字符串格式化；强制 python 使用特定版本的包；从特定路径导入 python 的包；python setup.py 安装一些静态文件；开源库的搜索引擎；docker 镜像和宿主机通信；</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Sun Jan 15 2023 16:41:44 GMT+0800">2023-01-15</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Python/">Python</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Docker/">Docker</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2023/01/15/%E7%AC%AC11%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2023/01/02/%E7%AC%AC10%E5%91%A8/">
                        第10周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <blockquote>
<p>人阳康之后又有好几周没写了哎！确实是没整理出来什么好的想法来写博客了</p>
</blockquote>
<p>python 中的单例模式；使用命令行给网站截图；python 从远程导入包；python 使用生成器代替线程</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Mon Jan 02 2023 14:27:14 GMT+0800">2023-01-02</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Python/">Python</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Linux/">Linux</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2023/01/02/%E7%AC%AC10%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2022/12/03/%E7%AC%AC9%E5%91%A8/">
                        第9周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <blockquote>
<p>最近的广州真冷，关好门窗裹着毛毯睡，早上六点寒气袭来，直接冻醒我了，今天已经下单一个 2.3 kg 的睡袋，准备用这个来过冬了</p>
<p>今天来讲一些 Linux 和 Python 上的杂项吧</p>
</blockquote>
<p>xmodmap 系列工具，用于键盘设置；把字符串输入作为 bash 脚本命令；python setup.py install without sudo；python 里的 GIL 锁；字符串选项的 Python3 类型提示；python 里的单例模式；python 判断 url 地址是否可达；</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Sat Dec 03 2022 20:08:16 GMT+0800">2022-12-03</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Python/">Python</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Linux/">Linux</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2022/12/03/%E7%AC%AC9%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2022/11/26/%E7%AC%AC8%E5%91%A8/">
                        第8周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <blockquote>
<p>今天来继续写博客吧，一周三更很快就能补上原来的进度了</p>
<p>这周来讲一下 Jupyter notebook 里面的好用的前端工具吧</p>
</blockquote>
<p>Jupyter notebook - 拥抱网络标准；Jupyter notebook - 通讯；Jupyter notebook - 自带的一些事件；Jupyter notebook - 表格工具；Jupyter notebook - echarts；Jupyter notebook - jQuery UI；Jupyter notebook - Vue</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Sat Nov 26 2022 20:54:29 GMT+0800">2022-11-26</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Jupyter-Notebook/">Jupyter Notebook</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2022/11/26/%E7%AC%AC8%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2022/11/25/%E7%AC%AC7%E5%91%A8/">
                        第7周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <blockquote>
<p>最近这几个月我都太懒了啊，没有坚持下来每周更新，接下来可要好好加油啦</p>
<p>本周来介绍几个好用的 python 库吧</p>
</blockquote>
<p>Python - memory_profiler 内存分析工具；Jupyter notebook 中的进度条；Python 别再用 format 拼链接啦 - 用 urlencode 分分钟字典传参；Python 别再用 format 拼数据库查询语句啦 - pandas.io.sql；Python 中的多任务以及序列化 - Joblib</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Fri Nov 25 2022 23:36:46 GMT+0800">2022-11-25</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Python/">Python</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Jupyter-Notebook/">Jupyter Notebook</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2022/11/25/%E7%AC%AC7%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2022/08/20/%E7%AC%AC6%E5%91%A8/">
                        第6周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <p>python 装饰器中的 self；Python 中的强类型检查 - Using Traitlets；数据库可视化工具；python 中的 site-package 和 dist-package；Jupyter Tidbit: IPython’s ! returns an SList</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Sat Aug 20 2022 16:41:25 GMT+0800">2022-08-20</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Python/">Python</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Jupyter-Notebook/">Jupyter Notebook</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2022/08/20/%E7%AC%AC6%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2022/07/23/%E7%AC%AC5%E5%91%A8/">
                        第5周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <p>python 的 retry；bazel deploy flask with gunicorn；python logging colorlog；python 中的偷天换日；python 中的 asyncio；python logging colorlog</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Sat Jul 23 2022 09:27:14 GMT+0800">2022-07-23</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Python/">Python</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Bazel/">Bazel</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Gunicorn/">Gunicorn</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2022/07/23/%E7%AC%AC5%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2022/07/17/%E7%AC%AC4%E5%91%A8/">
                        第4周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <p>jupyter notebook 里的前后端通信；jupyter notebook 里的 requirejs；富文本编辑器</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Sun Jul 17 2022 13:04:47 GMT+0800">2022-07-17</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Jupyter-Notebook/">Jupyter Notebook</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Javascript/">Javascript</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Requirejs/">Requirejs</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2022/07/17/%E7%AC%AC4%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2022/07/09/%E7%AC%AC3%E5%91%A8/">
                        第3周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <p>javascript 处理表单提交，jupyter notebook 里的文件下载，python 里的缓存持久化</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Sat Jul 09 2022 20:43:16 GMT+0800">2022-07-09</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Python/">Python</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Jupyter-Notebook/">Jupyter Notebook</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/code_training_2022/tags/Javascript/">Javascript</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2022/07/09/%E7%AC%AC3%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                <h3 class="home-article-title">
                    <a href="/code_training_2022/2022/06/19/%E7%AC%AC2%E5%91%A8/">
                        第2周
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        <p>Python LRU 缓存，Python 包读取静态资源，Python handle <a target="_blank" rel="noopener" href="https://docs.python.org/3/library/warnings.html#module-warnings"><code>warnings</code></a> — Warning control</p>
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fas fa-history"></i>&nbsp;<span class="home-article-date" data-date="Sun Jun 19 2022 13:44:07 GMT+0800">2022-06-19</span></span>
        
        
            <span class="home-article-tag">
                <i class="fas fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/code_training_2022/tags/Python/">Python</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/code_training_2022/2022/06/19/%E7%AC%AC2%E5%91%A8/">Read more&nbsp;<i class="fas fa-angle-right"></i></a>
</div>

            </li>
        
    </ul>

    <div class="home-paginator">
        <div class="paginator">
    

    
        <a class="next btn"
           href="/code_training_2022/page/2/"
        >Next</a>
    
</div>

    </div>
</div>


                
            </div>

        </div>

        <div class="page-main-content-bottom">
            <footer class="footer">
    <div class="info-container">
        <div class="copyright-info info-item">
            &copy;
            
              <span>2022</span>
              -
            
            2023&nbsp;<i class="fas fa-heart icon-animate"></i>&nbsp;<a href="/">cm_westwood</a>
        </div>
        
        <div class="theme-info info-item">
            Powered by <a target="_blank" href="https://hexo.io">Hexo</a>&nbsp;|&nbsp;Theme&nbsp;<a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep v3.4.5</a>
        </div>
        
        
    </div>
</footer>

        </div>
    </div>

    

    <div class="right-bottom-side-tools">
        <div class="side-tools-container">
    <ul class="side-tools-list">
        <li class="tools-item tool-font-adjust-plus flex-center">
            <i class="fas fa-search-plus"></i>
        </li>

        <li class="tools-item tool-font-adjust-minus flex-center">
            <i class="fas fa-search-minus"></i>
        </li>

        <li class="tools-item tool-expand-width flex-center">
            <i class="fas fa-arrows-alt-h"></i>
        </li>

        <li class="tools-item tool-dark-light-toggle flex-center">
            <i class="fas fa-moon"></i>
        </li>

        <!-- rss -->
        

        

        <li class="tools-item tool-scroll-to-bottom flex-center">
            <i class="fas fa-arrow-down"></i>
        </li>
    </ul>

    <ul class="exposed-tools-list">
        <li class="tools-item tool-toggle-show flex-center">
            <i class="fas fa-cog fa-spin"></i>
        </li>
        
            <li class="tools-item tool-scroll-to-top flex-center">
                <i class="arrow-up fas fa-arrow-up"></i>
                <span class="percent"></span>
            </li>
        
    </ul>
</div>

    </div>

    

    <div class="image-viewer-container">
    <img src="">
</div>


    
        <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
          <span class="search-input-field-pre">
            <i class="fas fa-keyboard"></i>
          </span>
            <div class="search-input-container">
                <input autocomplete="off"
                       autocorrect="off"
                       autocapitalize="off"
                       placeholder="Search..."
                       spellcheck="false"
                       type="search"
                       class="search-input"
                >
            </div>
            <span class="popup-btn-close">
                <i class="fas fa-times"></i>
            </span>
        </div>
        <div id="search-result">
            <div id="no-result">
                <i class="fas fa-spinner fa-pulse fa-5x fa-fw"></i>
            </div>
        </div>
    </div>
</div>

    

</main>





<script src="/code_training_2022/js/utils.js"></script>

<script src="/code_training_2022/js/main.js"></script>

<script src="/code_training_2022/js/header-shrink.js"></script>

<script src="/code_training_2022/js/back2top.js"></script>

<script src="/code_training_2022/js/dark-light-toggle.js"></script>



    
<script src="/code_training_2022/js/local-search.js"></script>




    
<script src="/code_training_2022/js/code-copy.js"></script>




    
<script src="/code_training_2022/js/lazyload.js"></script>



<div class="post-scripts">
    
</div>



</body>
</html>
